package net.hn.hnms.biz.plan.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;

/**
 * Author: PanSX
 * Date: 2022/8/5 14:37
 */
@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper=false)
@Table(name = "dim_drivage_face", schema = "public", catalog = "huaneng-smart-mine")
public class DimDrivageFace extends PlanBaseModel implements Serializable {
    @ApiModelProperty(value = "id")
    @TableId(type = IdType.ASSIGN_UUID)
    private String drivageFaceId;
    @ApiModelProperty(value = "巷道编号")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String drivageTunnelCode;

    @ApiModelProperty(value = "设计掘进长度（m）")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private BigDecimal drivageFaceLength;

    @ApiModelProperty(value = "坡度")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private BigDecimal drivageFaceSlope;

    @ApiModelProperty(value = "掘进方向")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String drivageFaceDirection;

    @ApiModelProperty(value = "总工程量")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private BigDecimal drivageFaceAmount;

    @ApiModelProperty(value = "预计开工时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date drivageFaceStartDate;

    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    @ApiModelProperty(value = "预计竣工时间")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date drivageFaceEndDate;

    @ApiModelProperty(value = "掘进工作面编号")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String drivageFaceCode;

    @ApiModelProperty(value = "掘进工作面名称")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String drivageFaceName;

    @ApiModelProperty(value = "是否重点区域")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String isKeyArea;

}
